package com.yx.sql.entity.vo;

import lombok.Data;

import java.util.Arrays;
import java.util.List;

/**
 * 连接驱动信息
 * 
 * @author kai.yang
 * @date 2023-03-28 14:19:19
 */
@Data
public class DbDriveVo {

	/**
	 * 
	 */
	private Long id;
	/**
	 * 驱动类
	 */
	private String driveClass;
	/**
	 * 驱动路径
	 */
	private String drivePath;
	/**
	 * 驱动名称
	 */
	private String driveName;
	/**
	 * 驱动版本
	 */

	private String driveVersion;
	/**
	 * 连接类型id db_type
	 */
	private Integer dbTypeId;

	/**
	 * 连接类型name db_type
	 */
	private String dbType;

	private List<String> driveJars;

	// private Long uidCreate;
	// private Date gmtCreate;
	// private Long uidModified;
	// private Date gmtModified;

	public void setDriveJars(String driveJars) {
		this.driveJars = Arrays.asList(driveJars.split(","));
	}
}
